chrome.extension.onRequest.addListener(
	function(request, sender, sendResponse) {
		var textSelection = document.getSelection();
		request.selectedText = textSelection.toString();
		sendResponse(request);
	}
);